package idGen;

public abstract class HiLoIdGenerator implements LongIdGenerator {
	
	protected int hi;
	
	public HiLoIdGenerator(int hi){
		this.hi = hi;
	}
	
	public int getHi(){
		return hi;
	}
	
	public abstract int getLow();
	
	@Override
	public long next() {
		long l = 0;
		l |= getHi();
		l <<= 32;
		l |= getLow();
		return l;
	}

}
